#include "skyBox.h"

SkyBox::SkyBox(const Cube& cube,const ObjectModelPtr& model)
	: SceneObject(cube,model){
	_color = RGBAColor(0.4f,0.4f,0.4f,1.0f);
}


SkyBox::~SkyBox(){
}

void SkyBox::setEnv(){
	glDisable(GL_DEPTH_TEST);
	glDisable(GL_LIGHTING);
	glColor4f(_color._r,_color._g,_color._b,_color._a);
}

void SkyBox::unsetEnv(){
	glEnable(GL_DEPTH_TEST);
	glEnable(GL_LIGHTING);
}
